package com.qf.shopping.ustils;

import com.qf.shopping.pojo.System.User;

import javax.servlet.http.HttpSession;

/**
 * 获取Session中的user
 */
public class UserUtils {

    public static User getUser(HttpSession session){
        User user = (User) session.getAttribute("suser");
        return user;
    }
}
